package com.hc;

public class UserService {
    UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void save(User user){
        System.out.println("Service层调用Dao层保存User");
        userDao.save(user);
    }
}
